package com.xinshujia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-18 16:37       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 *   与硬件交互的实体类
 */
@TableName("Function")
public class FunctionEntity {
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "DeviceGuid")
    private String deviceGuid;
    @TableField(value = "Function")
    private String function;
    @TableField(value = "FunctionResult")
    private String functionResult;
    @TableField(value = "Executed")
    private Integer executed;
    @TableField(value = "Time")
    private LocalDateTime createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceGuid() {
        return deviceGuid;
    }

    public void setDeviceGuid(String deviceGuid) {
        this.deviceGuid = deviceGuid;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public String getFunctionResult() {
        return functionResult;
    }

    public void setFunctionResult(String functionResult) {
        this.functionResult = functionResult;
    }

    public Integer getExecuted() {
        return executed;
    }

    public void setExecuted(Integer executed) {
        this.executed = executed;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
